package com.hnas.common.domain;

/**
 * 核心交易类型枚举类
 * @author Administrator
 *
 */
public enum CoreTradeType {

	Recharge_ZC("11","充值","00","正常充值"),
	Recharge_YY("11","充值","01","运营充值"),
	Recharge_CZZS("11","充值","02","充值赠送"),
	QuanCun("12","圈存","00","圈存"),
	LinkNetTrade_Proxy("36","代理联机消费","00","代理联机消费"),
	LinkNetTrade("37","联机消费","00","联机消费"),
	LinkNetTrade_Cancel("38","联机消费撤销","00","联机消费撤销"),
	Transfer_In("20","转账","02","转入"),
	Transfer_Out("20","转账","01","转出"),
	LinkNetTrade_Reject("05","联机消费退货","00","联机消费退货"),
	Recharge_CZCZ("80","充值冲正","00","充值冲正"),
	Recharge_CZZSCZ("80","充值冲正","02","充值赠送冲正"),
	LinkNetTrade_CZ("81","联机消费冲正","00","联机消费冲正"),
	QuanCun_CZ("82","圈存冲正","00","圈存冲正"),
	LKH_QuanCun_CZ("82","领款户圈存冲正","01","领款户圈存冲正"),
	Reject("04","退货","00","退货"),
	Core_Reject("05","退货","00","退货");
	
	private String type;
	private String subType;
	private String typeName;
	private String subTypeName;
	
	private CoreTradeType(String type, String typeName,String subType, String subTypeName) {
		this.type = type;
		this.subType = subType;
		this.typeName = typeName;
		this.subTypeName = subTypeName;
	}
	
	public static CoreTradeType getByType(String type,String subType){
		for(CoreTradeType temp : CoreTradeType.values()){
			if(temp.type.equals(type) && temp.subType.equals(subType)){
				return temp;
			}
		}
		return null;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSubType() {
		return subType;
	}

	public void setSubType(String subType) {
		this.subType = subType;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getSubTypeName() {
		return subTypeName;
	}

	public void setSubTypeName(String subTypeName) {
		this.subTypeName = subTypeName;
	}
	
}
